export interface PermissionItem {
    id:string
    name:string
    children:PermissionList
    select:boolean
    code:string
    level:number
    // level: 2;
    // code: "Acl";
    // pid: "1";

    // toCode: "";
    // type: 1;
}

export type PermissionList = PermissionItem[]

export interface GetPermissionListResponse{
    children:PermissionList
}

export interface SavePermissionApiParams{
    code:string // 权限值
    level:number // 等级
    name:string // 名称
    pid?:string // 父级的id
}

export interface UpdatePermissionApiParams extends SavePermissionApiParams{
    id:string
}